// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//cube-ui
import {
    Style,
    createAPI,
    Scroll,
    Toast,
    TabBar,
    TabPanels
} from 'cube-ui'

Vue.use(Scroll)
createAPI(Vue, Toast)

Vue.use(Scroll,TabBar,TabPanels)

//rem
import  './lib/auto-size.js'

//vue video
import VueVideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
import 'videojs-contrib-hls/dist/videojs-contrib-hls'
Vue.use(VueVideoPlayer)

//elm
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//elm vi色 改变
import './lib/elmtheme.sass'

//reset.css
import  './lib/reset.css'
import  './assets/scss/cubeCommon.css'

//vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)

//swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

//公共方法注册
import util from './util'
Vue.use(util)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})

